package com.jd.mysql.mgr.service.impl;

import java.util.List;

import com.jd.mysql.mgr.dao.MgrDatabaseDAO;
import com.jd.mysql.mgr.pojo.MgrDatabase;
import com.jd.mysql.mgr.pojo.MgrMachine;
import com.jd.mysql.mgr.service.IMgrDatabaseService;

public class MgrDatabaseServiceImpl implements IMgrDatabaseService {
	
	public MgrDatabaseDAO mgrDatabaseDAO;
	

	public void setMgrDatabaseDAO(MgrDatabaseDAO mgrDatabaseDAO) {
		this.mgrDatabaseDAO = mgrDatabaseDAO;
	}

	public void deleteMgrDatabase(MgrDatabase mgrDb) {
		// TODO Auto-generated method stub
		mgrDatabaseDAO.deleteMgrDatabase(mgrDb);
	}

	public MgrDatabase findMgrDatabaseById(Integer id) {
		// TODO Auto-generated method stub
		return mgrDatabaseDAO.findMgrDatabaseById(id);
	}

	public void saveMgrDatabase(MgrDatabase mgrDb) {
		// TODO Auto-generated method stub
		mgrDatabaseDAO.saveMgrDatabase(mgrDb);
	}

	public void updateMgrDatabase(MgrDatabase mgrDb) {
		// TODO Auto-generated method stub
		mgrDatabaseDAO.updateMgrDatabase(mgrDb);
	}

	public List<MgrDatabase> getMgrDatabaseList(Integer start, Integer limit,Boolean enable,Integer machineId,Integer groupId) {
		// TODO Auto-generated method stub
		return mgrDatabaseDAO.getMgrDatabaseList(start, limit,enable,machineId,groupId);
	}

	public Long getTotalCount(Boolean enable,Integer machineId,Integer groupId) {
		// TODO Auto-generated method stub
		return mgrDatabaseDAO.getTotalCount(enable,machineId,groupId);
	}

	public void disableMgrDatabase(MgrDatabase mgrDb) {
		// TODO Auto-generated method stub
		mgrDatabaseDAO.disableMgrDatabase(mgrDb);
	}

	public List<MgrDatabase> getMgrDatabaseListByMgrDatabase(
			MgrMachine mgrMachine) {
		// TODO Auto-generated method stub
		
		return mgrDatabaseDAO.getMgrDatabaseListByMgrDatabase(mgrMachine);
	}

	public Long getTotalCountByMgrDatabase(MgrMachine mgrMachine) {
		// TODO Auto-generated method stub
		return mgrDatabaseDAO.getTotalCountByMgrDatabase(mgrMachine);
	}

	public List<MgrDatabase> getMgrDatabaseList(Integer start, Integer limit,
			Boolean enable, Integer machineId, Integer groupId, String dbName) {
		// TODO Auto-generated method stub
		return mgrDatabaseDAO.getMgrDatabaseList(start, limit, enable, machineId, groupId, dbName);
	}

	public Long getTotalCount(Boolean enable, Integer machineId,
			Integer groupId, String dbName) {
		// TODO Auto-generated method stub
		return mgrDatabaseDAO.getTotalCount(enable, machineId, groupId, dbName);
	}

}
